<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>用户编辑</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../../dist/css/layui.css" media="all" />
	<style type="text/css">
		.layui-form-item .layui-inline{ width:33.333%; float:left; margin-right:0; }
		@media(max-width:1240px){
			.layui-form-item .layui-inline{ width:100%; float:none; }
		}
	</style>
</head>
<body class="childrenBody">

<form class="layui-form" style="width:90%; margin-top: 10px;"  id="view1" lay-filter="formresh"></form>

	<script id="role" type="text/html">
			{{#  layui.each(d.list, function(index, item){ }}
			<input type="checkbox"name="poetrytype" value="{{ item.id }}" lay-skin="primary" title="{{ item.name }}" >
			{{#  }); }}
			{{#  if(d.list.length === 0){ }}
			无数据
			{{#  } }}
	</script>

<script id="page" type="text/html">
	<input type="hidden" value="{{ d.userList.id}}" class="layui-input id">
	<input type="hidden" value="{{ d.userList.salt}}" class="layui-input salt">
	<div class="layui-form-item">
		<label class="layui-form-label">昵称:</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input nickName" value="{{ d.userList.nickname}}"  lay-verify="required" placeholder="请输入昵称">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">用户名:</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input userName" value="{{ d.userList.username}}"  lay-verify="required" placeholder="请输入用户名">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">密码:</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input password" value="" lay-verify="required" placeholder="请输入密码">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">邮箱:</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input userEmail" value="{{ d.userList.email}}"  lay-verify="email" placeholder="请输入邮箱">
		</div>
	</div>
	<div class="layui-form-item" pane="">
		<label class="layui-form-label">角色:</label>
		<div class="layui-input-block" id="view" ></div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">状态:</label>
		<div class="layui-input-block">

			<input type="radio" name="userStatus"  value="1" title="开放" {{#  if(d.userList.status === 1){ }} checked=""  {{#  } }} >

			<input type="radio" name="userStatus" value="0" title="禁用" {{#  if(d.userList.status === 0){ }} checked=""  {{#  } }}  >

		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="updateUser">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</script>
	<script src="../../../libs/jquery.min.js"></script>
	<script type="text/javascript" src="../../../dist/layui.js"></script>
	<script type="text/javascript" src="../../../js/user/edit.js"></script>
<script>

</script>
</body>

</html>